import request from '@/utils/request'

// 生成订单
export const orderInvoiceList = (data: any) => {
  return request({
    url: '/order-invoice/list',
    type: 'get',
    data
  })
}
// 发票申请

export const saveOrderInvoice = (data: any) => {
  return request({
    url: '/order-invoice/saveOrderInvoice',
    type: 'post',
    data,
    qs: true
  })
}

export const orderInvoiceDetails = (data: any) => {
  return request({
    url: '/order-invoice/details',
    type: 'get',
    data
  })
}
